package exec

import (
	"ant-agent/exec/controller"

	"github.com/gin-gonic/gin"
)

func ExecHandler(router *gin.RouterGroup) {
	api := router.Group("/exec")
	{
		api.POST("/job", controller.JobExec)
		api.POST("/job/result", controller.GetJobResult)
		api.POST("/job/resume", controller.ResumeManualJob)
		api.POST("/job/retry", controller.RetryJob)
	}
}
